@import './mixin.scss';
@import './config.scss';
.container {
  width: 1226px;
  margin-right: auto;
  margin-left: auto;
}

a {
  img {
    width: 100%;
    height: 100%;
  }
}

.fl {
  float: left;
}
.fr {
  float: right;
}
.clearfix:before, .clearfix:after {
  content: ' ';
  display: table;
}
.clearfix:after  {
  clear: both;
}

.header-logo {
  display: inline-block;
  width: 55px;
  height: 55px;
  background-color: $colorA;
  a {
    display: inline-block;
    width: 110px;
    height: 55px;
    // 通过伪类加两张图片
    &:before {
      // 伪类占位
      content: '';
      transition: margin .3s;
      @include bgImg(55px, 55px, '/imgs/mi-logo.png', 55px);
    }
    &:after {
      content: '';
      @include bgImg(55px, 55px, '/imgs/mi-home.png', 55px);
    }
    &:hover:before {
      // 查看after的图片
      margin-left: -55px;
      transition: margin .3s;
    }
  }
}